home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / getting there / Apps / MOO-1.7.6.src / inc / tcp.h < prev    next >
Text File  |  1994-11-02  |  1KB  |  36 lines

  1. #ifndef __TCP_NETWORK__
  2. #define __TCP_NETWORK__
  3.  
  4. #ifndef __TYPES__
  5. #include <Types.h>
  6. #endif
  7.  
  8. #define ENTRYPOINT
  9.  
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13.  
  14. ENTRYPOINT OSErr TCP_StartNetwork(StringPtr networkName, Boolean visible);
  15. ENTRYPOINT OSErr TCP_Listen(short);
  16. ENTRYPOINT OSErr TCP_TestForSession();
  17. ENTRYPOINT void* TCP_AcceptSession();
  18. ENTRYPOINT void  TCP_RejectSession();
  19. ENTRYPOINT void  TCP_GetConnectionInformation(void * sh, char * dataP);
  20. ENTRYPOINT OSErr TCP_EndSession(void * sh);
  21. ENTRYPOINT void* TCP_StartSessionWith(unsigned long address, short port);
  22. ENTRYPOINT OSErr TCP_WriteToSession(void * sh, char * dataP, long * length, int eof);
  23. ENTRYPOINT OSErr TCP_ReadFromSession(void * sh, char * dataP, long * length);
  24. ENTRYPOINT OSErr TCP_StopNetwork();
  25. ENTRYPOINT OSErr TCP_IPNameToAddr(char *name, unsigned long *addr);
  26. ENTRYPOINT OSErr TCP_IPAddrToName(unsigned long addr, char *name);
  27. ENTRYPOINT OSErr TCP_GetMyIPAddr(unsigned long *addr);
  28. ENTRYPOINT OSErr TCP_GetMyIPAddrStr(char *addrStr);
  29. ENTRYPOINT OSErr TCP_GetMyIPName(char *name);
  30.  
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34.  
  35. #endif
  36.